# Contributor: Faustin Lammler <faustin@fala.red>
# Maintainer: Faustin Lammler <faustin@fala.red>
pkgname=netdiscover
pkgver=0.10
pkgrel=0
pkgdesc="Active/passive ARP reconnaissance tool"
url="https://github.com/netdiscover-scanner/netdiscover"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	autoconf
	automake
	libpcap-dev
	"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/netdiscover-scanner/netdiscover/archive/$pkgver.tar.gz"
options="!check" # no proper testsuite

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	# Running update-oui-database.sh would probably make the build irreproducible
	# ./update-oui-database.sh
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="
a04a3ecb9cb76f22edc761b1a661e6e0f5c620763ca5a059923ce2d080e0d15bc0e0861ae354efc28ba2cea09b642128d8ee022106402f82041180c22e8becc9  netdiscover-0.10.tar.gz
"
